package com.zmzncs.lmtc.module.park.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zmzncs.lmtc.module.park.pojo.park_info.ParkInfo;
import com.zmzncs.lmtc.module.park.pojo.park_info.ParkInfoDTO;
import com.zmzncs.lmtc.module.park.pojo.park_info.ParkManagerParkInfoDTO;
import com.zmzncs.lmtc.module.park.pojo.park_manager.ParkInfoSpaceForm;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 任建波
 * @since 2020-09-29
 */
@Repository
@Mapper
public interface ParkInfoDao extends BaseMapper<ParkInfo> {

    /**根据车场主查询停车场信息 */
    List<ParkInfoDTO> getParkInfoByManageId(Long parkManageId);


    /** 修改车场车位数 */
    int  updateParkInfoSpaceForm(ParkInfoSpaceForm form);

    /** 车场主车场信息 */
    List<ParkManagerParkInfoDTO> getParkManageParkInfoByManageId(Long parkManageId);

}
